<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class ExpertFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {

        $x = random_int(0,2);
        $y = random_int(0,2);
        return [
            'name' => $this->faker->name(),
            'ks'=>$x==0?'内科':'外科',
            'zc'=>$y==0?'主任医师':'副主任医师',
            'hos'=>'XYZ医院',
            'intro'=>$this->faker->paragraphs(3,true),

        ];
    }
}
